package codej.parser.java;

import codej.ast.*;
import codej.ast.*;

public class CastExpression extends Expression {

	private Type type;
	private Expression expression;
	private Expression orExpression;

	public CastExpression(Type type, Expression expression) {
		this.type = type;
		this.expression = expression;
	}

	public CastExpression(Type type, Expression orExpression, Expression expression) {
		this.type = type;
		this.orExpression = orExpression;
		this.expression = expression;
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

}
